package com.hei.pojo;


import java.util.List;

public class PageHelper<T> {
    public int currPage;
    public int totalPage;
    public int size;
    public int totalCount;
    public List<T> lists;

    public PageHelper() {
    }

    public PageHelper(int currPage, int totalCount, int size) {
        this.currPage = currPage;
        this.size = size;
        this.totalCount = totalCount;
        this.totalPage=totalCount%size==0?totalCount/size:totalCount/size+1;
    }

    public int getCurrPage() {
        return currPage;
    }

    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getLists() {
        return lists;
    }

    public void setLists(List<T> lists) {
        this.lists = lists;
    }
}
